import { _decorator, Component, Label, Node } from 'cc';
import { ModuleBase } from '../Card/ModuleBase';
import { GameData } from '../GameData';
const { ccclass, property } = _decorator;

@ccclass('ShopGoldnum')
export class ShopGoldnum extends Component {
    private goldL:Label=null;
    onLoad(...rest: any[]): void {
        this.goldL=this.node.getChildByName("GoldnumL").getComponent(Label);
        
    }
    update(dt: number, ...rest: any[]): void {
        this.goldL.string=GameData.coin.toString();
    }
}


